<?php $data = array(
			'title' => '论文系统',
			'css' => array('css/global.css','css/list.css'),
			'js' => array('js/jquery-1.4.4.min.js'),
			'menu' => '02',
			'sub_menus' => array('user/user_list' => '用户管理','user/user_list/index' => '用户列表')
		);
		$this->load->view('templates/header',$data);
?>

<?php $this->load->view('templates/sub_menu');?>
<div class="main clearfix">
	<div class="real-wrap clearfix">
		<?php $this->load->view('templates/user_template');?>
		<div class="maincontent om">	
			<h3 class="special2">用户列表</h3>
			<div class="content contactlist">
				<table>
					<thead>
						<tr>
							<td>登陆名</td><td>昵称</td><td>性别</td><td>电话 </td><td>角色</td><td>创建时间</td><td>操作</td>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($users as $user):?>
							<tr>
								<td><?=$user->account?></td>
								<td><?=$user->name?></td>
								<td><?=$user->sex?></td>
								<td><?=$user->phone?></td>
								<td><?=$user->role_id?></td>
								<td><?=$user->insert_time?></td>
								<td>
									<a href="/user/user_list/edit/<?=$user->user_id?>" class="icon-edit" title="编辑"></a>
									&nbsp;&nbsp;|&nbsp;&nbsp;
									<a class="icon-trash" title="删除" href="/user/user_list/del/<?=$user->user_id?>" onclick="if(!confirm('确认删除吗？')) return false;"></a>
								</td>
							</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>

<?php $this->load->view('templates/footer');?>
